home *** CD-ROM | disk | FTP | other *** search
/ HPAVC / HPAVC CD-ROM.iso / pc / RGASM.RAR / ASMCODE.EXE / CHAPT1-5 / INVSAMPS.ASM < prev    next >
Encoding:
Assembly Source File  |  1993-05-10  |  580 b   |  21 lines

  1. ;
  2. ;       Program InvSamps
  3. ;
  4. .model  small
  5. .stack
  6. .data
  7. Msg1    db      'Message 1',0Dh,0Ah,'$'
  8. Msg2    db      'Message 2',0Dh,0Ah,'$'
  9. .code
  10. ProcOut proc    near PASCAL, MsgAddr:ptr byte    
  11.         mov     dx,MsgAddr              ; take address of parameter
  12.         mov     ah,09h                  ; function 09 - output string
  13.         int     21h                     ; DOS service call
  14.         ret                             ; return to caller
  15. ProcOut endp
  16. .startup
  17.         invoke  ProcOut,addr Msg1
  18.         invoke  ProcOut,addr Msg2
  19. .exit   0
  20.         end
  21.